#include "stdio.h"
/*
时间：20181025
编号：F10
功能：输入三边，求是否能组成三角形
*/

int main() {
    int i = 1;
    float a,b,c;
    printf("请输入三边：");
    scanf("%f%f%f",&a,&b,&c);
    if ((a + b > c) && (a + c > b) && (b + c > a)) {
        if (a == b && b == c && a == c) printf("等边三角形！\n");
        else if (a == b || b == c || a == c) {
            if ((a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a)) {
                printf("等腰直角三角形！\n");
                i = 0;
            }
            else printf("等腰三角形！\n");
        }
        else if ((a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a) && i) printf("直角三角形");
    }
    return 0;
}
